//
//  View+Ext.swift
//  TimMusic
//
//  Created by nkl on 2024/10/16.
//

import Foundation
import SwiftUI

extension View {
    func containerBackgroundClear() -> some View {
        if #available(iOS 17.0, *) {
            return AnyView(self.containerBackground(for: .widget) {
                Color.clear
            })
        } else {
            return AnyView(self)
        }
    }
    

}

extension Image {
    func customBlur(raduio: CGFloat, contentMode: ContentMode = .fill) -> some View {
        resizable()
            .blur(radius: raduio)
            .aspectRatio(contentMode: contentMode)
    }
}


